@media screen and (max-width: 1407px) {
    .present-image-wrap {
        width: 60px;
        height: 60px;
    }

    .present-image {
        max-width: 70%;
    }

    .present-message {
        transform: translateY(20px);
    }

    .present-message::after {
        top: 14px;
    }

    .message {
        padding: 5px 14px;
    }

    .present-image-wrap:hover ~ .present-message {
        transform: translateY(0px);
    }
}

@media screen and (max-width: 1199px) {
    .container {
        padding: 0 20px;
    }

    .main {
        overflow: hidden;
    }
}

@media screen and (max-width: 1024px) {
    .macaroons-info {
        padding: 127px 0 310px 0;
    }

    .macaroons-info .container {
        position: relative;
    }

    .macaroons-info-title {
        padding-bottom: 74px;
    }

    .macaroons-info-desc {
        grid-row: 2 / 3;
        padding-bottom: 47px;
    }

    .macaroons-info-image {
        top: 230px;
        right: 250px;
    }

    .macaroons-info-button {
        grid-row: 3 / 4;
    }

    .products-list {
        grid-template-columns: repeat(2, minmax(min-content, max-content));
        grid-template-rows: repeat(2, 1fr);
        grid-row-gap: 136px;
        grid-column-gap: 30px;
        justify-content: center;
    }
}

@media screen and (max-width: 960px) {
    .macaroons-info-image {
        right: 320px;
    }

    .advantages-list {
        grid-column: 1 / 3;
        grid-row: 4 / 5;
        grid-template-columns: repeat(2, minmax(min-content, max-content));
        grid-template-rows: repeat(2, minmax(min-content, max-content));
        justify-content: center;
        grid-column-gap: 62px;
        grid-row-gap: 85px;
    }

    .advantages-list-item {
        text-align: center;
    }

    .circle-number {
        margin: 0 auto;
    }

    .advantages-list-title {
        margin-top: 13px;
    }

    .order-form-img {
        right: 90px;
    }

    .present-image-wrap {
        display: none;
    }

    .present-message {
        display: none;
    }
}

@media screen and (max-width: 880px) {
    .order-form-img {
        right: 50px;
    }
}

@media screen and (max-width: 820px) {
    .macaroons-info-image {
        right: 360px;
    }

    .order-form-img {
        right: 20px;
    }
}

@media screen and (max-width: 768px) {
    .header .container > .phone {
        display: none;
    }

    .menu {
        padding-right: 200px;
    }

    .macaroons-info {
        padding: 65px 0 420px 0;
    }

    .macaroons-info .container {
        grid-template-columns: 580px;
        grid-template-rows: repeat(4, minmax(min-content, max-content));
    }

    .macaroons-info-title {
        padding-top: 0;
    }

    .macaroons-info-image {
        position: absolute;
        grid-column: 1 / 2;
        grid-row: 4 / 5;
        top: -90px;
        right: -115px;
    }

    .advantages .container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, minmax(min-content, max-content));
        justify-content: center;
    }

    .advantages-title {
        justify-self: center;
        text-align: center;
    }

    .advantages-desc {
        max-width: 665px;
        grid-row: 2 / 3;
        justify-self: center;
        text-align: center;
        padding-bottom: 42px;
    }

    .advantages-image {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
        justify-self: center;
        align-self: center;
    }

    .advantages-image img {
        width: 302px;
        height: 183px;
    }

    .advantages-list {
        grid-column: 1 / 2;
    }

    .order {
        padding: 120px 0;
    }

    .order .container {
        display: flex;
        gap: 0;
        align-items: end;
        position: relative;
    }

    .order-image {
        position: absolute;
        z-index: -1;
        top: 265px;
        right: 20px;
        padding-left: 0;
    }

    .order-image-img {
        width: 352px;
        height: 440px;
    }

    .order-form {
        width: 100%;
    }

    .order-form-img {
        bottom: 0;
        right: 150px;
        top: 125px;
    }

    .order-form-img-big {
        left: 47%;
        top: 38%;
    }
}

@media screen and (max-width: 720px) {
    .menu {
        display: none;
    }

    .burger {
        display: block;
    }

    .menu {
        position: fixed;
        z-index: 4;
        width: 100%;
        height: 100%;
        margin: 0;
        top: 0;
        left: 0;
        background: #000000c9;
    }

    .menu-list {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 30px;
    }

    .menu-item a {
        font-size: 22px;
        color: #FFFFFF;
    }

    .menu.open {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .menu .close {
        display: block;
        position: absolute;
        top: 20px;
        left: 20px;
    }

    .macaroons-info {
        padding: 65px 0 350px 0;
    }

    .macaroons-info-image {
        top: -70px;
        right: -90px;
    }

    .macaroons-info-image img {
        max-width: 80%;
    }
}

@media screen and (max-width: 640px) {
    .macaroons-info {
        padding: 65px 0 50px 0;
    }

    .macaroons-info .container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, minmax(min-content, max-content));
    }

    .macaroons-info-title {
        text-align: center;
        font-size: 45px;
        line-height: 50px;
        padding-bottom: 50px;
    }

    .macaroons-info-desc {
        justify-self: center;
        text-align: center;
    }

    .macaroons-info-button {
        justify-self: center;
    }

    .macaroons-info-image {
        position: static;
        padding-top: 38px;
    }

    .advantages-list {
        grid-column-gap: 20px;
        grid-row-gap: 40px;
    }

    .order-image {
        display: none;
    }

    .order-form-img {
        right: 100px;
        top: 580px;
    }

    .order-form-img-big {
        left: 60%;
        top: 38%;
    }
}

@media screen and (max-width: 540px) {
    .macaroons-info {
        padding: 65px 0 43px 0;
    }

    .macaroons-info-title {
        font-size: 35px;
        line-height: 40px;
        padding-bottom: 40px;
    }

    .advantages {
        padding: 100px 0;
    }

    .advantages-title {
        font-size: 30px;
        line-height: 35px;
        padding-bottom: 40px;
    }

    .advantages-desc {
        font-size: 16px;
        line-height: 23px;
    }

    .products {
        padding: 100px 0;
    }

    .products-title {
        font-size: 40px;
        padding-bottom: 122px;
    }

    .products-list {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        grid-row-gap: 136px;
        justify-content: center;
    }

    .order {
        padding: 100px 0 77px 0;
    }
}

@media screen and (max-width: 480px) {
    .macaroons-info-title {
        font-size: 32px;
        line-height: 40px;
        word-spacing: -2px;
    }

    .macaroons-info-desc {
        font-size: 16px;
        line-height: 23px;
    }

    .macaroons-info-image:before {
        width: 200px;
        height: 200px;
    }

    .macaroons-info-image:after {
        width: 200px;
        height: 200px;
    }

    .advantages-desc {
        font-size: 16px;
        line-height: 23px;
        padding-bottom: 60px;
    }

    .advantages-list {
        padding-top: 60px;
    }

    .advantages-list-title {
        font-size: 18px;
    }

    .advantages-list-desc {
        font-size: 13px;
        line-height: 18px;
    }

    .products-title {
        font-size: 30px;
        word-spacing: -2px;
    }

    .order-form-title {
        font-size: 30px;
    }

    .order-form-desc {
        font-size: 16px;
        line-height: 23px;
        color: #331907;
        padding-bottom: 59px;
        word-spacing: -2px;
    }

    .order-form-img {
        right: 70px;
        top: 520px;
    }

    .order-form-img-big {
        left: 75%;
        top: 18%;
    }
}

@media screen and (max-width: 425px) {
    .form-input {
        width: 100%;
    }

    .form-btn {
        width: 100%;
    }

    .order-form-img {
        display: none;
    }

    .order-form-img-big {
        animation: translate-image 1s linear infinite alternate;
    }

    @keyframes translate-image {
        0% {
            transform: translateY(-4px);
        }

        100% {
            transform: translateY(4px);
        }
    }

    .footer {
        padding: 50px 0;
        background-color: #c0707c;
    }

    .footer .container {
        flex-direction: column;
    }

    .footer-logo-copy {
        text-align: center;
        order: 1;
    }

    .footer-social {
        order: 3;
    }

    .phone {
        order: 2;
        padding: 40px 0;
    }

    .copy {
        display: none;
    }

    .copy-adaptive-visible {
        display: block;
        padding-top: 40px;
        order: 4;
    }
}

@media screen and (max-width: 320px) {
    .macaroons-info-title {
        font-size: 26px;
        line-height: 32px;
    }

    .macaroons-info-image:before {
        width: 150px;
        height: 150px;
    }

    .macaroons-info-image:after {
        width: 150px;
        height: 150px;
    }

    .advantages-list {
        grid-template-columns: 1fr;
        justify-content: center;
    }

    .advantages-list .advantages-list-item:nth-child(1) {
        justify-self: center;
    }

    .advantages-list .advantages-list-item:nth-child(4) {
        justify-self: center;
    }
}